home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 4 / Macwelt DVD 4.cdr / Entwickler / Mac-OS / oxygen / oxygen.app / Contents / Resources / Java / jh.jar / javax / help / SearchTOCItem$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-06-24  |  1.1 KB  |  33 lines

  1. package javax.help;
  2.  
  3. import java.util.Enumeration;
  4. import java.util.NoSuchElementException;
  5. import java.util.Vector;
  6.  
  7. class SearchTOCItem$1 implements Enumeration {
  8.    int count;
  9.    // $FF: synthetic field
  10.    private final SearchTOCItem this$0;
  11.  
  12.    SearchTOCItem$1(SearchTOCItem var1) {
  13.       this.this$0 = var1;
  14.       this.count = 0;
  15.    }
  16.  
  17.    public boolean hasMoreElements() {
  18.       return this.count < SearchTOCItem.access$000(this.this$0).size();
  19.    }
  20.  
  21.    public Object nextElement() {
  22.       Vector var1 = SearchTOCItem.access$000(this.this$0);
  23.       synchronized(var1) {
  24.          if (this.count < SearchTOCItem.access$000(this.this$0).size()) {
  25.             Double var2 = new Double(((SearchHit)SearchTOCItem.access$000(this.this$0).elementAt(this.count++)).getConfidence());
  26.             return var2;
  27.          }
  28.       }
  29.  
  30.       throw new NoSuchElementException("Vector Enumeration");
  31.    }
  32. }
  33.